package com.woniuxy.dudugua.mapper;

import com.woniuxy.dudugua.entity.Category;
import com.woniuxy.dudugua.entity.CategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);


    //海淘馆根据一级id查询三级id，用途用于前端校验
    List<Category>  selectByProductOverseasSon()  throws  Exception;

    //食品馆根据一级id查询三级id，用途用于前端校验
    List<Category>  selectByProductFoodIdSon()  throws  Exception;

    //专业馆根据一级id查询三级id，用途用于前端校验
    List<Category>  selectByProductMajorIdSon()  throws  Exception;

    List<String> selectCategory();
}